package com.javabi.boardgame.game.draughts;

import java.util.ArrayList;
import java.util.List;

import com.javabi.boardgame.game.draughts.piece.DraughtsPiece;
import com.javabi.boardgame.model.status.IStatus;

public class DraughtsStatus implements IStatus {

	private final DraughtsPlayer player;
	private final List<DraughtsPiece> pieceList = new ArrayList<DraughtsPiece>();

	public DraughtsStatus(DraughtsPlayer player) {
		if (player == null) {
			throw new NullPointerException("player");
		}
		this.player = player;
	}

	@Override
	public DraughtsPlayer getPlayer() {
		return player;
	}

	public void addPiece(DraughtsPiece piece) {
		if (piece == null) {
			throw new NullPointerException("piece");
		}
		pieceList.add(piece);
	}

}
